{extend  name="manage@public/layout" /}
{block name="style"}
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>角色列表</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link" onclick="location.replace(location.href);">
                                <i class="fa fa-refresh"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="table-responsive">
                            <table class="table table-bordered">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>角色名称</th>
                                        <th>更新时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                   {volist name="role" id="vo"}
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.role_name}</td>
                                        <td>{$vo.create_time}</td>
                                        <td>
                                            {notin  name="$vo.id" value='1'}
                                            <a style="color: #1ab394;border: 1px solid #1ab394;" class="btn btn-white btn-sm" href="{:url('/manage/roleEdit',['pid'=>$vo.id])}" style="color: #999c9e;"><i class="fa fa-edit"></i> 编辑权限</a>&nbsp;&nbsp;
                                            {else /}
                                            <span style="cursor:not-allowed;" class="btn btn-white btn-sm" style="color: #999c9e;"><i class="fa fa-ban"></i> 暂无操作</span>&nbsp;&nbsp;
                                            {/notin}
                                        </td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                            <div style="float:right;" class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
                                <ul class="pagination">
                                    
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div> 
    {/block}